import request from '@/utils/request'

export const loginDtos = (loginDto) => {
  return request({
    url:'/login',
    method:'post',
    data: loginDto
  }).then(res => {
    return res
  },error => {
    return error
  })
}

export const loginOut = () => {
  return request({
    url:'/logout',
    method:'get',
    headers:{
      "Authorization":localStorage.getItem("token")
    }
  }).then(res => {
    return res
  },error => {
    return error
  })
}

export const yanzhengCode = (tryCode) => {
  return request({
    url:'/kaptcha/check/'+tryCode,
    method:'get',
  }).then(res => {
    return res
  },error => {
    return error
  })
}
